#ifndef OMRENDERER_H
#define OMRENDERER_H

#include <QObject>
#include <GL/gl.h>

class OMDocument;
class OMGLCanves;
class QGLWidget;
class OMRenderer : public QObject
{
    Q_OBJECT
public:
    OMRenderer();

public:
    void setDocument(OMDocument* document);
    OMDocument* document(void);
    void setCanves(OMGLCanves* canves);

public slots:
    void renderDocument(void);
    void resetScene(void);
    void freeTexture(void);

private:
    OMDocument* mDocument;
    GLuint mTextureId;
    QGLWidget* mCanves;
    double mScaleFactor;
};

#endif // OMRENDERER_H
